{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}I:\Sebastian\Statistics\Stata\Stata13\fpa-bitsaid-appendix-c.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}27 Jul 2025, 23:40:19
{txt}
{com}. version 13.1
{txt}
{com}. 
. use fpa-aid_bits_final,clear
{txt}
{com}. 
. xtset dyad year 
{res}
{col 1}{txt:Panel variable: }{res:dyad}{txt: (unbalanced)}
{p 1 16 2}{txt:Time variable: }{res:year}{txt:, }{res:{bind:1971}}{txt: to }{res:{bind:2012}}{txt:, but with gaps}{p_end}
{txt}{col 10}Delta: {res}1 unit
{txt}
{com}. //table a24
. 
. quietly xtivreg2 lnaid l.p_polity2 l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* (l.bit_ratf = l.lnt_bit) if oecd_i==1&oecd_j==0, fe first savefirst cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) replace addtext() noni nor2 ctitle("2nd stage Aid")
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. est restore _xtivreg2_L_bit_ratf
{txt}(results {stata estimates replay _xtivreg2_L_bit_ratf:_xtivreg2_L_bit_ratf} are active now)

{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext(Time trend, yes, Dyad FE, yes) noni nor2 ctitle("1st stage BITs")drop(yr*)
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. //table a25 
. gen inter1=bit_ratf*dpi_yio
{txt}(187,662 missing values generated)

{com}. gen inter1_ex=lnt_bit*dpi_yio
{txt}(187,662 missing values generated)

{com}. ///democracies
> quietly xtivreg2 lnaid l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2>=6&p_polity2!=., fe first  savefirst cluster(dyad)
{txt}
{com}. outreg2 using bits_aid2, label word dec(3) e(N_clust) replace addtext() noni nor2 ctitle("2nd stage Aid") drop(yr*) 
{txt}{stata `"shellout using `"bits_aid2.rtf"'"':bits_aid2.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid2.txt", label"':seeout}

{com}. est restore _xtivreg2_L_bit_ratf
{txt}(results {stata estimates replay _xtivreg2_L_bit_ratf:_xtivreg2_L_bit_ratf} are active now)

{com}. outreg2 using bits_aid2, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("1st stage BITs") drop(yr*) cttop(Democracies)
{txt}{stata `"shellout using `"bits_aid2.rtf"'"':bits_aid2.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid2.txt", label"':seeout}

{com}. est restore _xtivreg2_L_inter1
{txt}(results {stata estimates replay _xtivreg2_L_inter1:_xtivreg2_L_inter1} are active now)

{com}. outreg2 using bits_aid2, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("1st stage Interaction ") drop(yr*)
{txt}{stata `"shellout using `"bits_aid2.rtf"'"':bits_aid2.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid2.txt", label"':seeout}

{com}. 
. ///non-democracies
> quietly xtivreg2 lnaid l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2<6&p_polity2!=., fe first savefirst cluster(dyad)
{txt}
{com}. outreg2 using bits_aid2, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("2nd stage Aid")
{txt}{stata `"shellout using `"bits_aid2.rtf"'"':bits_aid2.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid2.txt", label"':seeout}

{com}. est restore _xtivreg2_L_bit_ratf
{txt}(results {stata estimates replay _xtivreg2_L_bit_ratf:_xtivreg2_L_bit_ratf} are active now)

{com}. outreg2 using bits_aid2, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("1st stage BITs") drop(yr*) cttop(Non-Democracies)
{txt}{stata `"shellout using `"bits_aid2.rtf"'"':bits_aid2.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid2.txt", label"':seeout}

{com}. est restore _xtivreg2_L_inter1
{txt}(results {stata estimates replay _xtivreg2_L_inter1:_xtivreg2_L_inter1} are active now)

{com}. outreg2 using bits_aid2, label word dec(3) e(N_clust) append addtext(Time trend, yes, Dyad FE, yes) noni nor2 ctitle("1st stage Interaction") drop(yr yrsq)
{txt}{stata `"shellout using `"bits_aid2.rtf"'"':bits_aid2.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid2.txt", label"':seeout}

{com}. 
. //table a26
. ///LDV
> quietly xtivreg2 lnaid l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar l.lnaid  yr* (l.bit_ratf = l.lnt_bit) if oecd_i==1&oecd_j==0, fe first savefirst cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) replace addtext() noni nor2 ctitle("LDV")
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ///jointvotes
> quietly xtivreg2 lnaid l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar l.jointvotes2 yr* (l.bit_ratf = l.lnt_bit) if oecd_i==1&oecd_j==0, fe first cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("Jointvotes ")
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ///other aid
> quietly xtivreg2 lnaid l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar l.ln_aid_other yr* (l.bit_ratf = l.lnt_bit) if oecd_i==1&oecd_j==0, fe first cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("Other Aid")
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ///donor export 
> quietly xtivreg2 lnaid l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar l.ln_donor yr* (l.bit_ratf = l.lnt_bit) if oecd_i==1&oecd_j==0, fe first cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("Donor Exports")
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ///ciri_physint 
> quietly xtivreg2 lnaid l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar l.ciri_physint yr* (l.bit_ratf = l.lnt_bit) if oecd_i==1&oecd_j==0, fe first cluster(dyad) 
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext() drop(yr*) nor2 ctitle("Human Rights")sortvar(lbit_ratf l.bit_ratf l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar)
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. //table a27
. use fpa-aid_bits_final,clear
{txt}
{com}. //use executive years in office
. gen inter1=bit_ratf*dpi_yio
{txt}(187,662 missing values generated)

{com}. gen inter1_ex=lnt_bit*dpi_yio
{txt}(187,662 missing values generated)

{com}. 
. ///ldv
> sort dyad year
{txt}
{com}. ////democracies
> quietly xtivreg2 lnaid l.lnaid l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2>=6&p_polity2!=., fe first cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) replace addtext() noni nor2 ctitle("") drop(yr*) 
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ////non-democracies
> quietly xtivreg2 lnaid l.lnaid l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2<6&p_polity2!=., fe first cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("LDV") drop(yr*) 
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ///jointvotes
> 
. ////democracies
> quietly xtivreg2 lnaid l.jointvotes2 l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2>=6&p_polity2!=., fe first cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("") drop(yr*) 
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ////non-democracies
> quietly xtivreg2 lnaid l.jointvotes2 l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2<6&p_polity2!=., fe first cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("Joint Votes") drop(yr*) 
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ///other aid
> ////democracies
> quietly xtivreg2 lnaid ln_aid_other l.jointvotes2 l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar l.lnaid  yr* (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2>=6&p_polity2!=., fe first cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("") drop(yr*) 
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ////non-democracies
> quietly xtivreg2 lnaid ln_aid_other l.jointvotes2 l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2<6&p_polity2!=., fe first cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("Other Aid") drop(yr*) 
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ///donor export
> ////democracies
> quietly xtivreg2 lnaid l.ln_donor l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2>=6&p_polity2!=., fe first cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("") drop(yr*) 
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ////non-democracies
> quietly xtivreg2 lnaid l.ln_donor l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2<6&p_polity2!=., fe first cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("Donor Exports") drop(yr*) 
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ///human rights
> ////democracies
> quietly xtivreg2 lnaid l.ciri_physint l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2>=6&p_polity2!=., fe first cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext() noni nor2 ctitle("") drop(yr*) 
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. ////non-democracies
> quietly xtivreg2 lnaid l.ciri_physint l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta l.unsc_member l.ally l.coldwar yr* (l.bit_ratf l.inter1 = l.lnt_bit l.dpi_yio l.inter1_ex) if oecd_i==1&oecd_j==0&p_polity2<6&p_polity2!=., fe first cluster(dyad)
{txt}
{com}. outreg2 using bits_aid, label word dec(3) e(N_clust) append addtext(Time trend, yes, Dyad FE, yes) noni nor2 ctitle("Human Rights") ///
> sortvar(l.bit_ratf l.inter1 l.dpi_yio l.p_polity2  l.ln_gdppc l.wdi_gdpgr l.wdi_fdiin l.wdi_natrr l.lnpop l.conflict l.gdpgr_i l.pta unsc_member ally coldwar) ///
> drop(yr*) 
{txt}{stata `"shellout using `"bits_aid.rtf"'"':bits_aid.rtf}
{browse `"I:\Sebastian\Statistics\Stata\Stata13"' :dir}{com} : {txt}{stata `"seeout using "bits_aid.txt", label"':seeout}

{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}I:\Sebastian\Statistics\Stata\Stata13\fpa-bitsaid-appendix-c.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}28 Jul 2025, 00:43:23
{txt}{.-}
{smcl}
{txt}{sf}{ul off}